Available Ollama Commands


Command Description
ollama --help This will list all the possible commands along with a brief description of what they do.
ollama command --help If you want details about a specific command.
ollama run --help Show all available options for running models.
ollama create Creates a custom model from a Modelfile, allowing you to fine-tune or modify existing models.
ollama run model Runs a specified model to process input text, generate responses, or perform various AI tasks.
ollama pull model Downloads a model from Ollama’s library to use it locally. Also updates installed model
ollama list Displays all installed models on your system.
ollama rm model Removes a specific model from your system to free up space.
ollama serve Runs an Ollama model as a local API endpoint, useful for integrating with other applications.
ollama ps Shows currently running Ollama processes, useful for debugging and monitoring active sessions.
ollama stop model Stops a running Ollama process using its process ID or name.
ollama show model Displays metadata and details about a specific model, including its parameters.
ollama run model "with input" Executes a model with specific text input, such as generating content or extracting information.
ollama run < "with file input" Processes a file (text, code, or image) using an AI model to extract insights or perform analysis.

Linux command line to update all models at once

ollama list | tail -n +2 | awk '{print $1}' | xargs -I {} ollama pull {}

Back to the List